﻿@page "/Bars/RowsWithLabels"
@using LiveChartsCore.SkiaSharpView.Blazor
@using LiveChartsCore;
@using LiveChartsCore.SkiaSharpView;

<CartesianChart
    Series="@series">
</CartesianChart>

@code {
    private static int[] values1 = new int[] { 8, -3, 4 };
    private static int[] values2 = new int[] { 4, -6, 5 };
    private static int[] values3 = new int[] { 6, -9, 3 };

    private ISeries[] series = new ISeries[]
    {
        new RowSeries<int>
        {
            Values = values1,
            DataLabelsPosition = LiveChartsCore.Measure.DataLabelsPosition.End,
            DataLabelsSize = 14,
            ShowDataLabels = true
        },
        new RowSeries<int>
        {
            Values = values2,
            DataLabelsPosition = LiveChartsCore.Measure.DataLabelsPosition.Middle,
            DataLabelsSize = 14,
            ShowDataLabels = true
        },
        new RowSeries<int>
        {
            Values = values3,
            DataLabelsPosition = LiveChartsCore.Measure.DataLabelsPosition.Start,
            DataLabelsSize = 14,
            ShowDataLabels = true
        }
    };
}
